
{include file="public/account_head"}
<div id="logistics_index" v-if="show">
    <div class="pub_wid notice_cont" >
        <div class="mes_left rg">
            <div class="message bgb widthauto radius">
                <h6>账户信息<a href="#">修改</a></h6>
                <dl class="widthauto">
                    <dt><img src="/static/index/public/images/headimage.jpg" /></dt>
                    <br />
                    <dd v-if="member_grade == 2"><span>用户类型：</span>
                        <em>物流企业</em><b><img src="../../images/vip.png" /><font>VIP</font>物流企业<i>到期时间：{{member_time}}</i></b></dd>
                    <dd v-if="member_grade == 1"><span>用户类型：</span><i class="pt">普通物流企业（待升级）</i></dd>
                    <dd><span>绑定手机：</span>{{member.phone}}</dd>
                </dl>
            </div>
            <div class="message bgb widthauto radius">
                <h6>公司认证信息<a href="#">修改</a></h6>
                <div class="logo widthauto"><span>公司LOGO：</span> <img :src="memberInfo.logo" /></div>
                <div class="ent_de_box widthauto">
                    <ul class="ulb">
                        <li><span>公司名称：</span>{{memberInfo.name}}</li>
                        <li><span>所&nbsp;在&nbsp;地：</span>{{memberInfo.address}}</li>
                        <li><span>详细地址：</span>{{memberInfo.home_address}}</li>
                        <li><span>注册时间：</span>{{memberInfo.company_time}}</li>
                        <li><span>注册资本：</span>{{memberInfo.fund}}</li>
                        <li><span>官方网址：</span>{{memberInfo.website_url}}</li>
                        <li><span>公司简介：</span></li>
                    </ul>
                    <ul class="ulb">
                        <li><span>联&nbsp;系&nbsp;人：</span>{{memberInfo.contacts}}</li>
                        <li><span>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：</span>{{memberInfo.position}}</li>
                        <li><span>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</span>{{memberInfo.mobile}}</li>
                        <li><span>固定电话：</span>{{memberInfo.landine_phone}}</li>
                        <li><span>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</span>{{memberInfo.email}}</li>
                        <li><span>微&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;信：</span>{{memberInfo.wechat}}</li>
                    </ul>
                    <ul class="ulc bot_line">
                        <li>
                            {{memberInfo.company_info}}
                        </li>
                    </ul>
                </div>
                <div class="ent_de_box widthauto">
                    <ul class="ula">
                        <li><span>服务类型：</span><a >运输服务</a><a >仓储服务</a></li>
                        <li><span>自有运力：</span>{{supplement.self_car}}<span><em>&nbsp;</em>外协车辆：</span>{{supplement.subordinate_car}}</li>
                        <li><span>挂靠情况：自购占比：</span>{{supplement.self_buying}}<span><em>&nbsp;</em>挂靠占比：</span>{{supplement.subordinate_buying}}</li>
                        <li><span>长跑路线：</span>{{supplement.line}}</li>
                        <li><span>资质概况：</span><a>{{supplement.certification}}</a></li>
                        <li><span>客户案例：</span></li>
                        <!--                    <li><span>所属行业：</span>快消品</li>-->
                        <!--                    <li><span>预算金额：</span>1000万/年</li>-->
                        <!--                    <li><span>发&nbsp;货&nbsp;量：</span>1000万吨</li>-->
                        <!--                    <li><span>主要线路：</span>北京-沈阳、郑州-新疆、南京-北京</li>-->
                        <!--                    <li><span>服务要求：</span></li>-->
                    </ul>
                    <ul class="ulc">
                        <li>{{supplement.case}}</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="lf two_left">
            <div class="about_nav">
                <ul class="widthauto">
                    <li><a href="#" class="down">账户中心</a></li>
                    <p class="widthauto"><a href="#" class="cur">我的信息</a><a href="#">修改密码</a></p>
                    <li><a href="#">我的货主企业</a></li>
                    <li><a href="#">我的发布</a></li>
                </ul>
            </div>
            <div class="add_box"> <a href="#"><img src="/static/index/public/images/add_008.jpg" /></a> </div>
        </div>
    </div>
    {include file="public/footer"}
</div>
<script>
    $
    var vmAuditLoading = new Vue({
        el:'#logistics_index',
        data:{
            id:'',
            member:{},
            memberInfo:{},
            supplement:{
                'self_car':'',
                'subordinate_car':'',
                'self_buying':'',
                'subordinate_buying':'',
                'line':'',
                'certification':''
            },
            member_grade:1,
            member_time:'',
            show:true
        },
        methods:{
            getMemberAllInfo:function () {
                var el = this;
                var postData = {
                    'id':el.id,
                }
                AjaxPost(postData,'/index/member/getMemberLogisticsById').then((response)=>{
                    console.log(response)
                    var member = response.result
                    var memberInfo = member.memberInfo
                    if(memberInfo != null){
                        el.memberInfo = memberInfo
                        el.member_grade = memberInfo.member_grade
                        el.member_time = memberInfo.member_time
                    }
                    var supplement = member.logisticsReplenish
                    if(supplement != null ){
                        el.supplement = supplement
                    }
                    el.member = member
                    el.show = true

                })
            }

        },
        mounted(){
            this.$nextTick(function () {
                if(localStorage.getItem("memberId") != null){
                    this.id = localStorage.getItem("memberId");
                    this.getMemberAllInfo();
                }
            })
        },
        created(){


        }
    })
</script>